package com.tg.dao;

import com.tg.pojo.entity.TgSeat;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author 王兴
 * @Description
 * @Date 2022/3/28
 */

public interface SeatRepository extends JpaRepository<TgSeat,Integer> {

    List<TgSeat> findSeatNumberByTicketIdAndSeatTypeNumberAndSeatStatus(Integer ticketId,Integer seatTypeNumber,Integer seatStatus );

    TgSeat findSeatStatusByTicketIdAndSeatNumber(Integer ticketId,String seatNumber );


}
